import React from 'react'
import NewsPublish from '../../../components/publish-manage/NewsPublish';
import usePublish from '../../../components/publish-manage/usePublish';
import {Button} from 'antd'

export default function ReleaseList() {
  const {dataSource, handleDelete} = usePublish()
  
  return (
    <div>
      <NewsPublish
        dataSource={dataSource}
        button={ (id) => (
          <Button onClick={() => handleDelete(id)}>下线</Button>
          )
        }
      ></NewsPublish>
    </div>
  )
}